package sample8;

public class Car implements Propeties {

	int num;
	double gas;
	
	Car(int num,double gas){
		this.num = num;
		this.gas = gas;
	}
	
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public double getGas() {
		return gas;
	}
	public void setGas(double gas) {
		this.gas = gas;
	}
	@Override
	public void toPropeties() {
		System.out.println("class = " +this.getClass().getName());
		System.out.println("num=" + num);
		System.out.println("gas=" + gas);
		
	}
	
}
